//
//  LCWaterFlowLayout.h
//  瀑布流
//
//  Created by li cheng on 16/9/12.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LCWaterFlowLayoutDelegate <NSObject>
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout height:(CGFloat)height widthForItemAtIndexPath:(NSIndexPath *)indexPath;
@end
@interface LCWaterFlowLayout : UICollectionViewLayout
@property (nonatomic, weak) id <LCWaterFlowLayoutDelegate>delegate;
@property (nonatomic, assign) NSInteger numberOfRow;
@property (nonatomic, assign) NSInteger numberOfitemInRow;
@property (nonatomic, assign) CGFloat contentWidth;
@property (nonatomic, strong) NSMutableArray<UICollectionViewLayoutAttributes *> *attributesArray;
@end
